package com.example.administrator.xtu_community.bean;

import org.litepal.crud.DataSupport;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class Note extends DataSupport implements Serializable {
    private int note_from;

    public void setType(String type) {
        this.type = type;
    }

    private String title;
    private String content;
    private Timestamp time;
    private User user;

    public String getType() {
        return type;
    }

    private String type;
    private List<Comment> commentList = new ArrayList<>();
    private int main_image;
    private List<Integer> show_images = new ArrayList<>();
    private String image2;
    private List<String> image2List = new ArrayList<>();
    private int viewed_number;


    public Note(){}

    public Note(String title, String content, Timestamp time, int main_image, int viewed_number){
        this.title = title;
        this.content = content;
        this.time = time;
        this.main_image = main_image;
        this.viewed_number = viewed_number;
    }


    public int getNote_from() {
        return note_from;
    }

    public void setNote_from(int note_from) {
        this.note_from = note_from;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Comment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList) {
        this.commentList = commentList;
    }

    public int getMain_image() {
        return main_image;
    }

    public void setMain_image(int main_image) {
        this.main_image = main_image;
    }

    public List<Integer> getShow_images() {
        return show_images;
    }

    public void setShow_images(List<Integer> show_images) {
        this.show_images = show_images;
    }

    public String getImage2() {
        return image2;
    }

    public void setImage2(String image2) {
        this.image2 = image2;
    }

    public List<String> getImage2List() {
        return image2List;
    }

    public void setImage2List(List<String> image2List) {
        this.image2List = image2List;
    }

    public int getViewed_number() {
        return viewed_number;
    }

    public void setViewed_number(int viewed_number) {
        this.viewed_number = viewed_number;
    }
}
